package org.sl.flvplayer.helper {

	/**
	 * Gets a html hexadecimal colorcode as a string and returns a decimal colorcode as a number.
	 * 
	 * @package org.sl.flvplayer.helper
	 * @author Dan
	 * @version 
	 * @see org.sl.flvplayer.data.Config
	 * @see org.sl.flvplayer.data.VideoItem
	 */ 
	public class MathHelper {

		/**
		 * Returns a number converted by Flash internally from a hexadecimal string into a decimal number.
		 * 
		 * @param p_hexString html <code>String</code>
		 * @return returns the colorcode as a <code>Number</code>
		 */
		public static function htmlHexToNumber(p_hexString : String) : Number {
			return Number("0x" + p_hexString.substr(1, p_hexString.length - 1));		
		}	
	}
}
